package com.mf.cloud.controller;

import com.mf.cloud.entities.Pay;
import com.mf.cloud.resp.ResultData;
import com.mf.cloud.service.PayService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: lmf
 * @Create: 2024/3/18 20:42
 * Description:  测试链路追踪、zipkin使用
 */
@RestController
@Tag(name = "测试链路追踪、zipkin使用")
public class PayManagementController {
    @Resource
    private PayService payService;
    @Operation(summary = "测试接口")
    @GetMapping("/pay/management/get/{id}")
    public ResultData<Pay> getPayById(@PathVariable("id") Integer id) {
        return ResultData.success(payService.selectById(id));
    }
}
